package com.cxx.home.service;


import com.baomidou.mybatisplus.core.metadata.IPage;
import com.cxx.home.dto.food.FoodRecipeDto;
import com.cxx.home.dto.food.FoodRecordDto;
import com.cxx.home.dto.food.FoodStatsDto;
import com.cxx.home.dto.food.FoodSummaryDto;
import com.cxx.home.vo.FoodQueryVo;

import java.util.List;

public interface FoodService {
    Boolean addFoodRecipe(FoodRecipeDto foodRecipeDto);

    Boolean updateFoodRecipe(Long id, FoodRecipeDto foodRecipeDto);

    Boolean deleteFoodRecipe(Long id);

    Boolean addFoodRecord(FoodRecordDto foodRecordDto);

    Boolean updateFoodRecord(Long id, FoodRecordDto foodRecordDto);

    Boolean deleteFoodRecord(Long id);

    FoodRecipeDto queryFoodRecipe(Long id);

    IPage<FoodSummaryDto> queryFoodSummary(Integer currentPage, Integer pageSize, FoodQueryVo foodQueryVo);

    List<FoodRecordDto> queryFoodRecord(String startDate, String endDate);

    List<String> queryFoodName();

    List<String> queryFoodCategory();

    FoodStatsDto queryFoodStats();
}
